package com.sky.loveshop.service;

import com.github.pagehelper.PageInfo;
import com.sky.loveshop.entity.Shelf;
import com.sky.loveshop.entity.exception.BizException;
import com.sky.loveshop.entity.qo.ShelfQO;
import com.sky.loveshop.entity.vo.AreaShelfVO;
import com.sky.loveshop.entity.vo.ShelfVO;
import com.sky.loveshop.entity.vo.SkuDetailVO;

import java.util.List;

/**
 * @author xcy
 * @version V1.0
 * @description
 * @date 2024/8/18 0:05
 */
public interface ShelfService {

    List<ShelfVO> listShelf(ShelfQO shelfQO);

    PageInfo<ShelfVO> listShelfPages(ShelfQO shelfQO);

    ShelfVO getShelfById(Integer id);

    List<Shelf> getShelfListByIds(List<Integer> ids);

    Integer addShelf(Shelf shelf);

    Integer delShelfById(Integer id);

    Integer updateShelfById(Shelf shelf);

    List<AreaShelfVO> getShelfListByShopId(Integer shopId);

    List<SkuDetailVO> getIndexByShoIdAndArea(Integer shopId, String areaId, String keyWords) throws Exception;

    Shelf getShelfByNameAndShopId(String keyWords, Integer shopId);
}
